home *** CD-ROM | disk | FTP | other *** search
- /* Editor.rexx - This script intercepts the temporary filename of anything */
- /* that GRn/AmigaElm is editing - so we can send mail from them "directly" */
- /* version 3.00 - 9-16-94, by Rick Taylor charlet@eng.clemson.edu */
-
- /* New for v3.00 - A proc reads editor from ENV:DRMEDITOR */
-
- /* GRn's */
-
- options results
- TFileName = ARG(1)
- address command
-
- /* Store this puppy for later */
-
- call open .tfn,'t:grnrexxsendmail.name',write
- call writeln .tfn,TFileName
- call close .tfn
-
- /* Now start the editor */
-
- call open .dae,'t:grnrexxsendmail.cmd',write
- call writeln .dae,envar('DRMEDITOR') TFileName
- call close .dae
-
- 'execute t:grnrexxsendmail.cmd'
-
- /* Now we hand control back to the caller... */
-
- exit
-
- envar: procedure
- arg evname
- epath = "ENV:"||evname
- evalue = ""
- if exists(epath) then do
- call open .envar,epath,read
- evalue = readln(.envar)
- call close .envar
- end
- return evalue
-
-
-